#include"DesignList.h"
void test1()
{
	MyLinkedList * obj = myLinkedListCreate();
	myLinkedListAddAtHead(obj,1);
	print(obj);
	myLinkedListAddAtTail(obj, 3);
	print(obj);
	myLinkedListAddAtIndex(obj, 1, 2);
	print(obj);
	printf("%d\n", myLinkedListGet(obj, 1));
	myLinkedListDeleteAtIndex(obj, 1);
	printf("%d\n", myLinkedListGet(obj, 1));

}
void test2()
{
	MyLinkedList* obj = myLinkedListCreate();
	myLinkedListAddAtHead(obj, 1);
	print(obj);
	myLinkedListDeleteAtIndex(obj, 0);
}

void test3()
{
	MyLinkedList* obj = myLinkedListCreate();
	myLinkedListAddAtHead(obj, 7);
	myLinkedListAddAtHead(obj, 2);
	myLinkedListAddAtHead(obj, 1);
	print(obj);

}

void test4()
{
	MyLinkedList* obj = myLinkedListCreate();
	myLinkedListAddAtHead(obj,1);
	myLinkedListAddAtTail(obj,3);
	myLinkedListAddAtIndex(obj, 1, 2);
	printf("%d\n", myLinkedListGet(obj, 1));
	print(obj);
	myLinkedListDeleteAtIndex(obj,0);
	printf("%d\n", myLinkedListGet(obj, 0));

	print(obj);
}

void test5()
{
	MyLinkedList* obj = myLinkedListCreate();
	myLinkedListAddAtIndex(obj, 0, 10);
	myLinkedListAddAtIndex(obj, 0, 20);
	print(obj);
}
int main()
{
	test5();
	return 0;
}